﻿<Window x:Class="CECB.Project.AddNewProject_Window"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="AddNewProject_Window" 
        xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"      
        WindowStartupLocation="CenterScreen" 
        Loaded="Window_Loaded" Background="#AA000000" AllowsTransparency="True" WindowStyle="None" WindowState="Maximized" 
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">

    <Grid Height="787" Width="883" Margin="0,50,0,0"  >
        <Grid.RowDefinitions>
            <RowDefinition Height="221*" />
            <RowDefinition Height="569*" />
        </Grid.RowDefinitions>

        <Rectangle Margin="-18,0,-18,116" Stroke="White" RadiusY="19.5" RadiusX="19.5" StrokeThickness="4" Grid.RowSpan="2">
            <Rectangle.Effect>
                <DropShadowEffect Direction="330" BlurRadius="24" ShadowDepth="13" />
            </Rectangle.Effect>
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#FFA3A1A1" Offset="0.494" />
                    <GradientStop Color="#FF272121" Offset="0" />
                    <GradientStop Color="#FF272121" Offset="1" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>




        <Label Content="Create a New Project"  HorizontalAlignment="Center" Margin="25,22,564,0"  Height="47.96" VerticalAlignment="Top" Foreground="White" FontSize="21.333"></Label>
        <StackPanel Margin="24,74,6,96" Canvas.Left="-85" Canvas.Top="10"  Background="Transparent" OpacityMask="{x:Null}" Grid.RowSpan="2">
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
            <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0"/>
        </StackPanel>
        <WrapPanel Orientation="Vertical" Margin="510,204,10,196" Grid.Row="1">
            <StackPanel Background="#FF3E3832" >
                <Label Content="Other Details" Height="28" Width="347" Name="label_othDetails" HorizontalAlignment="Left" Margin="5,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            </StackPanel>
            <TextBox Name="tbMultiLine" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Visible"  Grid.Row="1" Height="122" Width="357" Background="#FFFFECA1"></TextBox>
        </WrapPanel>
        <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Height="165" Margin="510,88,12,0" Grid.RowSpan="2">
            <WrapPanel Orientation="Horizontal" Canvas.Left="35" Background="#FF3E3832" Canvas.Top="324" Width="358">
                <Label Content="Plan Image" Height="28" Width="111" Name="label_planImage" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0" />
                <WrapPanel Height="29" Name="wrapPanel4" Width="78" />
                <Button Height="23"  Margin="104,0,0,0" Name="button_selectPlanImg" Width="29" Click="button_selectPlanImg_Click">
                    <Button.Background>
                        <ImageBrush ImageSource="/CECB;component/images/image_add.png" />
                    </Button.Background>
                </Button>
            </WrapPanel>
            <WrapPanel Background="#FFFFECA1">
                <Image Height="133" Name="image_PlanImg" Stretch="Fill" Width="350" />
            </WrapPanel>
        </WrapPanel>

        <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Height="164" Margin="510,42,6,0" Grid.Row="1">
            <WrapPanel Orientation="Horizontal" Background="#FF3E3832" Canvas.Left="35" Canvas.Top="324" Width="358">
                <Label Content="Model Image" Height="28" Width="111" Name="labelmodelImage" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="14" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
                <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0" />
                <WrapPanel Height="29" Name="wrapPanel3" Width="69" />
                <Button Height="24" Margin="104,0,0,0" Name="button_selctModlImg" Width="36" Click="button_selctModlImg_Click">
                    <Button.Background>
                        <ImageBrush ImageSource="/CECB;component/images/image_add.png" />
                    </Button.Background>
                </Button>
            </WrapPanel>
            <WrapPanel Background="#FFFFECA1">
                <Image Height="125" Name="image_modelImg" Stretch="Fill" Width="350" />
            </WrapPanel>
        </WrapPanel>



        <Expander Header="More Location Details" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" Name="expander_locationDetails" IsExpanded="True" IsEnabled="True"  Canvas.Left="38" Canvas.Top="367" Margin="24,145,379,141" Grid.Row="1">
            <Grid Height="234" Width="426">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0*" />
                    <ColumnDefinition Width="343*" />
                    <ColumnDefinition Width="70*" />
                </Grid.ColumnDefinitions>
                <StackPanel Name="stackPanel1" Margin="3,-34,-15,6" Grid.Column="1" Grid.ColumnSpan="2">
                    <WrapPanel VerticalAlignment="Top" Orientation="Horizontal" Margin="0,5,0,0" Height="28" Width="398">
                        <WrapPanel Height="18" Name="wrapPanel2" Width="118" />
                    </WrapPanel>
                </StackPanel>
                <WrapPanel Orientation="Horizontal" Grid.ColumnSpan="3" Margin="-18,39,-32,6">
                    <TextBox Height="28" Name="textBox_longitude" Width="238" FontSize="16" Background="#FFFFECA1" SelectionBrush="#FF6E6E6E" Foreground="#FF332F2F" TextChanged="textBox_longitude_TextChanged" KeyDown="textBox_longitude_KeyDown" GotFocus="textBox_longitude_GotFocus" PreviewTextInput="textBox_longitude_PreviewTextInput" KeyUp="textBox_longitude_KeyUp" />
                    <TextBox Height="28" Name="textBox_latitude" Width="232" FontSize="16" Background="#FFFFECA1" SelectionBrush="#FF6E6E6E" Foreground="#FF332F2F" TextChanged="textBox_latitude_TextChanged" KeyDown="textBox_latitude_KeyDown" GotFocus="textBox_latitude_GotFocus" />
                    <Button  Margin="235,0,0,0" Content="Add" Height="23" Name="button_NewRecord" Width="235" Click="button_NewRecord_Click" BorderBrush="White" Background="Green" Foreground="White" />
                    <ListView Canvas.Left="12" Canvas.Top="68" Name="listView1" Width="470"  SelectionMode="Single" Height="132" SelectionChanged="listView1_SelectionChanged" Background="#FFFFECA1">
                        <ListView.View>
                            <GridView>
                                <GridViewColumn Header="Longitude" Width="235" DisplayMemberBinding="{Binding  Loc_longitude}"></GridViewColumn>
                                <GridViewColumn Header="Latitude" Width="235" DisplayMemberBinding="{Binding Loc_latitude}"></GridViewColumn>
                            </GridView>
                        </ListView.View>
                    </ListView>
                </WrapPanel>
                <WrapPanel VerticalAlignment="Top" Background="#FF3E3832" Orientation="Horizontal" Margin="-22,4,-31,0" Height="34" Grid.ColumnSpan="3">
                    <WrapPanel Height="21" Name="wrapPanel5" Width="4" />
                    <WrapPanel Height="34" Name="wrapPanel7" Width="32" />
                    <Label Content="Longitude" Height="33" IsEnabled="True" Name="label1" Width="206" Foreground="White" />
                    <Label Content="Latitude" Height="33" IsEnabled="True" Name="label2" Width="168" Foreground="White" />
                </WrapPanel>
                <Button Content="Remove" Height="23" Name="button_RemoveRecord" Foreground="White" Click="button_RemoveRecord_Click" Grid.Column="1" Grid.ColumnSpan="2" Margin="220,223,-26,-12" BorderBrush="White" Background="Red" />
            </Grid>
        </Expander>

        <WrapPanel Name="wrapPanel6" Margin="758,378,19,138" Grid.Row="1">
            <Button Background="{x:Null}" BorderBrush="White" Click="button_save_Click" Height="44" Margin="2,0" Name="SaveButton" Width="98">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Image Grid.Column="0" Height="32" Margin="2" Source="/CECB;component/images/Save.png" Width="32" />
                    <StackPanel Grid.Column="1" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Center">
                        <TextBlock Margin="0" Padding="0" Text="Save" TextWrapping="NoWrap" Foreground="White" />
                    </StackPanel>
                </Grid>
            </Button>



        </WrapPanel>
        <WrapPanel VerticalAlignment="Top" Background="#FF3E3832" Name="wrapPanelUserLogin" Margin="25,162,380,0" Orientation="Horizontal">
            <Label Content="Project Type" Width="147" Height="33" Name="label_projtype" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            <ComboBox Height="23" Name="comboBox_projType" Width="255" FontSize="16" DisplayMemberPath="ptype_name" SelectedValuePath="ptype_reference" DropDownOpened="comboBox_projType_DropDownOpened" Background="#FFFFECA1"></ComboBox>
            <Button Content="" Height="28" Name="button_projType_add" Width="34" Click="button_projType_add_Click">
                <Button.Background>
                    <ImageBrush ImageSource="/CECB;component/images/New.png" />
                </Button.Background>
            </Button>
            <Label Content="*" Height="20" Padding="2,0,2,0" Foreground="Red" FontSize="20"  />
        </WrapPanel>
        <WrapPanel Orientation="Horizontal" Background="#FF3E3832" Canvas.Left="33" Canvas.Top="290" Margin="25,103,380,433" Grid.Row="1">
            <Label Content="Location" Height="28" Width="146" Name="label_location" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            <TextBox Height="33" Name="textBox_location" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="16" Background="#FFFFECA1" SelectionBrush="#FF6E6E6E" Foreground="#FF332F2F" HorizontalAlignment="Right" Width="290" />
            <Label Content="*" Height="20" Padding="2,0,2,0" Foreground="Red" FontSize="20"  />
        </WrapPanel>
        <WrapPanel Orientation="Horizontal" Background="#FF3E3832" Canvas.Left="33" Canvas.Top="290" Margin="25,62,380,474" Grid.Row="1">
            <Label Content="Approving Agency" Height="33" Width="146" Name="label_appAgency" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            <TextBox Name="textBox_appAgency" TextWrapping="Wrap" VerticalAlignment="Top" Height="33" FontSize="16" Background="#FFFFECA1" SelectionBrush="#FF6E6E6E" Foreground="#FF332F2F" HorizontalAlignment="Right" Width="290" />
            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
        </WrapPanel>
        <WrapPanel Orientation="Horizontal" Background="#FF3E3832" Canvas.Left="33" Canvas.Top="262" Margin="25,21,378,515" Grid.Row="1">
            <Label Content="Consultent" Height="33" Width="147" Name="label_consultent" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            <Label Content="CECB" FontSize="16" Padding="2,4,0,0" Height="30" HorizontalAlignment="Left" Margin="0,0,0,0" Name="lblConsultent" VerticalAlignment="Top" Width="289"   Foreground="#FF4E0000" Background="#FFFFECA1" />
        </WrapPanel>
        <WrapPanel Canvas.Left="35" Canvas.Top="234" Background="#FF3E3832" Margin="25,202,380,554" Grid.RowSpan="2">
            <Label Content="Client" Width="147" Height="33" Name="label_client" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            <TextBox Name="textBox_client" TextWrapping="Wrap" VerticalAlignment="Top" Height="33" FontSize="16" Background="#FFFFECA1" SelectionBrush="#FF6E6E6E" Foreground="#FF332F2F" HorizontalAlignment="Right" Width="290" />
            <Label Content="*" FontSize="20" Foreground="Red" Height="20" Padding="2,0,2,0" />
        </WrapPanel>
        <WrapPanel VerticalAlignment="Top" Background="#FF3E3832" Orientation="Horizontal" Margin="25,122,378,0">
            <Label Content="Project Catogory" Height="33" Width="147" Name="label_projCatogory" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            <ComboBox Height="23" Name="comboBox_projCatogory" DisplayMemberPath="cat_name" SelectedValuePath="cat_reference"  Width="289" SelectionChanged="comboBox_projCatogory_SelectionChanged" FontSize="16" Background="#FFFFECA1" BorderBrush="{x:Null}" DropDownOpened="comboBox_projCatogory_DropDownOpened">
            </ComboBox>
            <Label Content="*" Height="20" Padding="2,0,2,0" Foreground="Red" FontSize="20"  />
        </WrapPanel>
        <WrapPanel VerticalAlignment="Top" Background="#FF3E3832" Orientation="Horizontal" Margin="25,88,380,0">
            <Label Content="Project Name" Height="28" Width="147" Name="label_projname" HorizontalAlignment="Left" Margin="25,0,0,0" VerticalAlignment="Top" FontSize="16" FontStyle="Italic" FontWeight="Medium" Foreground="White" BorderThickness="0" BorderBrush="White" />
            <TextBox Name="textBox_projname" TextWrapping="Wrap" VerticalAlignment="Top" Height="28" FontSize="16" Background="#FFFFECA1" SelectionBrush="#FF6E6E6E" Foreground="#FF332F2F" HorizontalAlignment="Right" Width="290" />
            <Label Content="*" Height="20" Padding="2,0,2,0" Foreground="Red" FontSize="20"  />
        </WrapPanel>
        <Grid HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,11,18,0">
            <Image Height="32" Margin="1,2,3,2" Source="/CECB;component/images/closeblack.png"  Width="32" MouseLeftButtonDown="Image_MouseLeftButtonDown" />
        </Grid>
    </Grid>
</Window>
